﻿#region Includes

using System.Text;
using System.Collections.Generic;

#endregion

namespace ArtheaEngine.Model
{
    public partial class Account : IWritable, IEntity
    {
        [Flag]
        public static readonly Flag Admin = Flag.MakeBit(0);

        public Account()
        {
        }

        public virtual IConnection Connection { get; set; }

        #region Implementation of IWritable

        public virtual void WriteLine()
        {
            Connection.WriteLine();
        }

        public virtual void WriteLine(object value)
        {
            Connection.WriteLine(value);
        }

        public virtual void WriteLine(string format, params object[] args)
        {
            Connection.WriteLine(format, args);
        }

        public virtual void Write(string format, params object[] args)
        {
            Connection.WriteLine(format, args);
        }

        public virtual void Write(byte[] value)
        {
            Connection.Write(value);
        }

        public virtual void Write(object obj)
        {
            Connection.Write(obj);
        }

        public virtual void Page(StringBuilder buf)
        {
            Connection.Page(buf);
        }

        #endregion
    }
}